package br.com.caelum.tarefas.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import br.com.caelum.tarefas.modelo.Tarefa;
import br.com.caelum.tarefas.modelo.TarefaDAO;

@Controller
public class TarefasController {
	
	@RequestMapping("adicionaTarefa")
	public String adiciona(Tarefa tarefa) {
		TarefaDAO dao = new TarefaDAO();
		dao.adiciona(tarefa);
		return "tarefa-adicionada";
	}


}
